So there's two basic types of
relationships between classes and a UML class diagram. One is the association or has a links we
might say that a flight has an airport, it actually has two airports
associate with that. There's a departure airport,
an arrival airport, we might say that a movie showing
has a movie associated with it. So a movie showing is per movie
with a certain day and time. In this UML diagram we're looking
at a customer has a name and a delivery address and
it has an association or a straight line link has
an association with an order. So a customer has an order has
a customer associated with it. An order might also have an order number,
it might have the date received and then order might also have
a list of items in the order. So for each item there might be a name or
an I D or a price. And then there's another type of
relationship which is shown by this triangle, which is an inheritance
relationship that says that one class is a parent of another class. So what this is saying is that
a customer is a parent class and there's two kinds of customers. There's a corporate customer and
a personal customer. You might have different discounts for
corporate customer versus a personal customer, there might be
rewards program for a personal customer. And then another inheritance relationship
here in this diagram is a combo. And a combo when you've gone to
maybe a fast food restaurant, they might say hey order combo one
which gives you maybe a sandwich and a drink and fries or chips or something. So a combo typically is multiple items,
it's a kind of item you can order it. But it is a combination
of multiple items and then the price is calculated by adding
up the price of each of the items. But maybe multiplying it by some discount,
so maybe .9 or .8. So this is a very simple class diagram
to show you the two major relationships, the association with a straight
line link and the inheritance. Or the open diamond to show the parent and
the child is the one doing the inheriting. So that's a quick introduction to
both inheritance and association.